﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <script src="jquery-3.4.1.min.js"></script>
</head>
<body>
    <button id="PushCardRecord" class="PushMsg">推送出入记录</button>
    <button id="PushAlarmRecord" class="PushMsg">推送报警记录</button>
    <button id="PushDoorRecord" class="PushMsg">推送门磁、门锁 记录</button>
    <button id="PushSystemRecord" class="PushMsg">推送系统消息及远程操作</button>
    <button id="PushStatus" class="PushMsg">推送工作状态</button>
   
</body>
</html>
<script type="text/javascript">

    $(function () {

        $(".PushMsg").click(function () {
            Send($(this).attr("id"));
        });

        function Send(type) {
            debugger
            $.get("api/FaceRecord/PushMsg/" + type, {}, function (data) {
                alert(data);
            });
        }
    });
</script>